import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;

public class Dynamizer {

	private File logFile;

	private PrintWriter out;

	public Dynamizer(String path) {
		try {

			logFile = new File(path);
			out = new PrintWriter(new FileWriter(logFile, false));
			out.write("// C'est la classe!");
			out.println();
			out.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public void append(String string) {

		try {
			out = new PrintWriter(new FileWriter(logFile, true));
		} catch (IOException e) {
			e.printStackTrace();
		}
		out.println();
		out.write(string);
		out.close();
	}

}
